package cn.com.xiaoshoujia.activities.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author dulei
 * @Title: ActivityOperationAddDTO
 * @Description: 增加或更新团购设置DTO
 * @Time 2017/7/28 13:50
 */
public class ActivityOperationAddDTO {
    @NotNull
    @NotBlank(message = "主办方名称不能为空")
    private String sponsor;//主办方名称
    @NotNull
    @NotBlank(message = "地址不能为空")
    private String address;//地址

    @NotBlank(message = "联系电话不能为空")
    private String phone;//联系电话 010-1231231,17777111111

    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8}$", message = "通知手机号错误")
    private String noticePhone;//通知手机

    @Pattern(regexp = "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)$",
            message = "通知邮箱格式不正确")
    private String noticeEmail;//通知邮箱

    @NotNull(message = "未选择通知类型")
    private Integer noticeType;//通知类型，0不通知 10每天通知
    @NotNull(message = "未选择城市")
    private Long cityId;//城市ID

    public String getSponsor() {
        return sponsor;
    }

    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNoticePhone() {
        return noticePhone;
    }

    public void setNoticePhone(String noticePhone) {
        this.noticePhone = noticePhone;
    }

    public String getNoticeEmail() {
        return noticeEmail;
    }

    public void setNoticeEmail(String noticeEmail) {
        this.noticeEmail = noticeEmail;
    }

    public Integer getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(Integer noticeType) {
        this.noticeType = noticeType;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }
}
